package com.xinyu.vo;

import java.time.Instant;

public class LessonDownloadToken {

    private final String token;
    private final Integer lessonId;
    private final Integer userId;
    private final String relativePath;
    private final String attachmentName;
    private final Instant expireAt;

    public LessonDownloadToken(String token, Integer lessonId, Integer userId, String relativePath, String attachmentName, Instant expireAt) {
        this.token = token;
        this.lessonId = lessonId;
        this.userId = userId;
        this.relativePath = relativePath;
        this.attachmentName = attachmentName;
        this.expireAt = expireAt;
    }

    public String getToken() {
        return token;
    }

    public Integer getLessonId() {
        return lessonId;
    }

    public Integer getUserId() {
        return userId;
    }

    public String getRelativePath() {
        return relativePath;
    }

    public String getAttachmentName() {
        return attachmentName;
    }

    public Instant getExpireAt() {
        return expireAt;
    }
}
